package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Building;
import campus.aiit.ssl.manage.custom.dao.BaseDao;
import campus.aiit.ssl.manage.custom.dao.DaoResultCheck;

/**
 * @author ihaokun
 * @date 2019/12/1 18:01
 */
public interface BuildingDao extends BaseDao<Building> {
  @Override@DaoResultCheck
  int deleteByPrimaryKey(Long id);

  @Override@DaoResultCheck
  int insertSelective(Building record);

  @Override
  Building selectByPrimaryKey(Long id);

  @Override@DaoResultCheck
  int updateByPrimaryKeySelective(Building record);

  Building[] selectArrayByForeignKey(long zoneId);

  int selectFloorsById(long id);

  Building[] selectByZoneName(String name);
}